package com.wl.application.services;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import com.wl.application.common.all.Result;
import com.wl.application.entity.Menu;
import com.wl.application.entity.User;
import com.wl.application.entity.UserRole;
import com.wl.application.entity.vo.AllotVo;

import java.util.List;
import java.util.Set;

/**
 * @author wl
 * @version 1.0
 * @date 2022/6/23
 * @description:
 */
public interface AllotService extends IService<UserRole> {
    Result PowerInfo(Integer rid);

    boolean addPower(AllotVo allotVo);

    Page<User> getUserListByRid(AllotVo id);

    Page<User> noAllotPower(AllotVo allotVo);

    boolean addRoleToUser(Integer rid, List<Integer> users);

    boolean removeUserAndUr(List<Integer> ids);


    Set<String> getAllPowerByUid(Integer uid);

    boolean checkPower();
}
